package com.zyq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: spring-boot-Myplus
 * @description:
 * @author: 朱永奇
 * @create: 2024-07-13 20:47
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "部门实体类")
public class Dept {

    @ApiModelProperty(value = "部门id")
    @TableId(type = IdType.AUTO)
    private int deptno;
    @ApiModelProperty(value = "部门名")
    private String dname;
    @ApiModelProperty(value = "地址")
    private String loc;
}
